/*
* 苏州海管家物流科技有限公司（https://www.hgj.com/）.
* 苏公网安备32059002003385号 © 2015-2022 Hgj.com All Rights Reserved. | 苏ICP备15030950号.
* @Date: 2022.07.31.
* @Author
* @Description 企点管理后台 - 项目接口封装 - 扩展 api .
**/
import request from "@/utils/request"

/**
 *@Description
 *@Return get 方式请求 方法.
 **/
export function getData (params = {}, url: string) {
    return request({
        url,
        params,
        method: 'get'
    })
}
/**
 *@Description
 *@Return post 方式请求 方法.
 **/
export function postData (data = {}, url: string) {
    return request({
        url,
        data,
        method: 'post'
    })
}
/**
 *@Description
 *@Return put 方式请求 方法.
 **/
export function putData(data = {}, url: string) {
    return request({
        url,
        data,
        method: 'put'
    })
}
/**
 *@Description
 *@Return delete 方式请求 方法.
 **/
export function deleteData(data = {}, url: string) {
    return request({
        url,
        data,
        method: 'delete'
    })
}
/**
 *@Description
 *@Return patch 方式请求 方法.
 **/
export function patchData(data = {}, url: string) {
    return request({
        url,
        data,
        method: 'patch'
    })
}
